﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="exportMaintainRecordTable" class="main-content">
    <h3 class="page-title">导出保养记录Export maintenance records</h3>

    <div class="panel panel-default">
        <div class="panel-heading">
            <p class="panel-title">按条件导出Export by condition</p>
            <div class="right">
                <button type="button" class="btn-toggle-collapse"><i class="fa fa-angle-up"></i></button>
            </div>
        </div>
        <div class="panel-body container-fluid">
            <form action="/Maintain/ExportMaintainRepordReport" method="post">
                <div class="row">
                    <div class="col-sm-4">
                        <div class="input-group input-group-sm">
                            <span class="input-group-addon">保养单模板Maintenance order template</span>
                            <select class="form-control" name="queryFormID">
                                <option v-for="(form, idx) in templateFormList" v-bind:value="form.ID">{{form.Name}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group input-group-sm">
                            <span class="input-group-addon">开始日期Start date</span>
                            <input id="searchStartDate" type="text" class="form-control azDatePicker" name="queryStartDate" />
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group input-group-sm">
                            <span class="input-group-addon">结束日期End date</span>
                            <input id="searchEndDate" type="text" class="form-control azDatePicker" name="queryEndDate" />
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-12 text-right">
                        <br />
                        <button class="btn btn-default btn-sm" type="submit">
                            <i class="fa fa-search"></i> 导出export
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@section scripts{
    <script type="text/javascript" src="~/Scripts/pageJs/Maintain/Export.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
}
